/*
 * Copyright (c) 2022-2022 All rights Reserved.
 */

package com.driving.core.service.dto;

import com.driving.core.base.AbstractDTO;
import com.driving.core.entity.School;

import lombok.Getter;
import lombok.Setter;

/**
 * @author SAGITTAR
 * @since 2017
 */
@Getter
@Setter
public class SchoolDTO extends AbstractDTO {

    private String name;

    private String detail;

    public School toSchool() {
        School school = new School();
        school.setId(getId());
        school.setName(name);
        school.setDetail(detail);
        return school;
    }
}
